package com.qzyh.esb.egsa.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzyh.esb.egsa.bean.vo.ChangePwdVO;
import com.qzyh.esb.egsa.bean.vo.UserRoleAndDeptVO;
import com.qzyh.esb.egsa.bean.vo.UserSaveVO;
import com.qzyh.esb.egsa.bean.vo.UserVO;
import com.qzyh.esb.egsa.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qzyh.esb.egsa.utils.ResultObject;

import java.lang.reflect.InvocationTargetException;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author whq
 * @since 2023-03-13
 */
public interface IUserService extends IService<User> {

    IPage<UserVO> getList(IPage<UserVO> page, String loginName);

    ResultObject saveUserInfo(UserSaveVO vo);

    ResultObject deleteById(String id);

    ResultObject<UserRoleAndDeptVO> queryUserRoleAndDeptById(String id);

    ResultObject changePwd(ChangePwdVO vo);

    ResultObject resetPwd(String id);
}
